const express = require( 'express' );
const router = express.Router()

const stuModel = require( '../db/models/stuModel' )


router.put( '/put', async ( req, res ) => {
    let postData = req.body;
    let data = await stuModel.update( postData );
    res.status( 201 ).send( data );
} );

module.exports = router